﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FareChgQueue.aspx.cs" Inherits="IFD2.FareChgQueue" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server" role="form" class="form-inline">
    <div class="container-fluid body-content" style="width:100%;">

        <div class="row">
            <div class="col-sm-2 well well-sm">
                <h5><asp:Literal ID="litTitle" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h5>
                <div class="form-group">
                    <asp:Label ID="Label1" runat="server" Text="Status:" meta:resourcekey="Status"></asp:Label>
                    <asp:DropDownList ID="lstStatuses" runat="server" CssClass="form-control input-sm" Width="100%">
                        <asp:ListItem Selected="True" Value="Q" meta:resourcekey="Queueing">Queueing</asp:ListItem>
                        <asp:ListItem Value="D" meta:resourcekey="Done">Done</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <br class="hidden-xs"/><br class="hidden-xs"/>
                <asp:LinkButton ID="lbtnQuery" runat="server" CssClass="form-control input-sm btn-primary text-center" Width="100%" ToolTip="" meta:resourcekey="tipQuery" OnClick="lbtnQuery_Click">
                    <span class="glyphicon glyphicon-search" style="font-size:large;"></span>
                </asp:LinkButton>
                <p></p><%--没有此行(或&nbsp;)，上面的按钮在手机模式(xs)下，只有上半部可以点击！--%>
            </div>

            <div class="col-sm-10 well well-sm">
                <div class="panel">
                    <div class="panel-heading btn-primary">
                        <h6 class="panel-title" id="section-2"><asp:Literal ID="Literal1" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h6>
                    </div>
                    <div class="panel-body">
                        <div class="table-responsive">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" style="min-width:400px;width:60%;" class="table-hover"
                                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#EFF3FB" />
                                <Columns>
                                    <asp:BoundField DataField="queue_time" HeaderText="queue_time" SortExpression="queue_time"  meta:resourcekey="queue_time" />
                                    <asp:TemplateField HeaderText="fare_code" meta:resourcekey="fare_code">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%# "FareSegments.aspx?fare_code="+Eval("fare_code") %>'><%#Eval("fare_code") %></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="done_user" HeaderText="done_user" SortExpression="done_user"  meta:resourcekey="done_user" />
                                    <asp:BoundField DataField="done_time" HeaderText="done_time" SortExpression="done_time"  meta:resourcekey="done_time" />
                                </Columns>
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#2461BF" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </div>
                    </div>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                        SelectCommand="bll_fare_get_approvement_request" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                        <SelectParameters>
                            <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                            <asp:ControlParameter ControlID="lstStatuses" Name="status" PropertyName="SelectedValue" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </div>

            </div>

        </div>
    </div></form>
</asp:Content>
